//
//  RefsModel.m
//  DayByDay
//
//  Created by dllo on 16/5/18.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "RefsModel.h"

@implementation RefsModel

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    if ([key isEqualToString:@"image"]) {
        _pic_url = [value valueForKey:@"pic"];
    }
    if ([key isEqualToString:@"big_image"]) {
        if (value) {
            _big_pic_url = [value valueForKey:@"pic"];
        }
    }
}

- (void)setSongs:(NSMutableArray *)songs {
    _songs = [NSMutableArray array];
    for (NSDictionary *dic in songs) {
        RefsSongsModel *model = [RefsSongsModel new];
        [model setValuesForKeysWithDictionary:dic];
        [_songs addObject:model];
    }
}



@end
